<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/3/20
  Time: 21:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../../assets/img/favicon.ico">

    <title>宠物用品管理系统</title>

    <!-- Bootstrap core CSS -->
    <link href="../../../assets/dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link href="../../../assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="../../../assets/css/dashboard.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="/assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="../../../assets/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body style="background-color: #e7e7e7">

<nav class="navbar navbar-inverse navbar-fixed-top" style="background-color: #e7e7e7" >
    <div class="container-fluid">
        <div class="navbar-header" >
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">宠物用品管理系统</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">宠物管理系统</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <%--                <li><a href="#">用户</a></li>--%>
                <li><a href="${pageContext.request.contextPath}/tuichu">退出</a></li>

            </ul>

        </div>
    </div>
</nav>

<div class="container-fluid">
    <div class="row" style="background-color: #e7e7e7">
        <div class="col-sm-3 col-md-2 sidebar" style="background-color: #e7e7e7">
            <ul class="nav nav-sidebar" style="background-color: #e7e7e7">
<%--                <li class="active"><a href="${pageContext.request.contextPath}/sale/getSale03">销售信息</a></li>--%>

<%--                <li><a href="${pageContext.request.contextPath}/stock/getStock02">进货</a></li>--%>
<%--                <li><a href="${pageContext.request.contextPath}/return/getReturn02">退货</a></li>--%>


            </ul>


        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <div class="container" style="float: right">
                <div class="row clearfix">
                    <div class="col-md-12 column">
                        <div class="page-header">
                            <h1>
                                <smla>退货列表----------审核退货信息</smla>
                            </h1>
                        </div>
                    </div>
                    <div class="row" >
                        <div class="col-md-4 colum">
                            <%--                toaddbook--%>

                            <a class="btn btn-primary" href="${pageContext.request.contextPath}/return/getReturn">显示全部订单</a>

                        </div>
                    </div>
                    <div class="col-md-4 column">


                    </div>
                    <div class="row">
                        <div class="col-md-4 colum" style="display: inline">

                            <%--               查询书籍--%>
<%--                            <form action="${pageContext.request.contextPath}/product/queryProductbyname"   method="post" style="float:right;display: inline "  class="form-inline">--%>
<%--                                <input type="text" class="form-control" name="name" placeholder="请输入要查询用品名称"  style="display: inline-block"/>--%>
<%--                                <input type="submit" value="查询"  style="display: inline-block" class="btn btn-primary"/>--%>
<%--                            </form>--%>


                            <form action="${pageContext.request.contextPath}/return/getReturnById04"   method="post" style="float:right; display: inline" class="form-inline">
                                <input type="text" class="form-control" name="id" placeholder="请输入要查询的用品编号"/>
                                <input type="submit" value="查询" class="btn btn-primary"/>
                            </form>






                        </div>
                    </div>
                </div>
                <div class="row clearfix">
                    <div class="col-md-12 column">
                        <table class="table table-hover table-striped">
                            <thead>
                            <h2>${noreviewinformation}</h2>
                            <tr>
                                <th>商品编号</th>
                                <th>商品名称</th>
                                <th>价格</th>
                                <th>数量</th>
                                <th>原因</th>
                                <th>供货商</th>
                                <th>时间</th>
                                <th>备注</th>
                                <th>电话</th>
                            </tr>
                            </thead>
                            <%--           书籍是从数据库中查询出来 从这个list中遍历出来：foreach--%>
                            <tbody>
                            <%--<c:forEach var="book" items="${requestScope.get(list)}"              --%>
                            <c:forEach var="product" items="${returnPageInfo.list}">
                                <tr>
                                    <td>${product.id}</td>
                                    <td>${product.name}</td>
                                    <td>${product.price}</td>
                                    <td>${product.number}</td>
                                    <td>${product.reason}</td>
                                    <td>${product.sume}</td>
                                    <td>${product.date}</td>
                                    <td>${product.detail}</td>
                                    <td>${product.cphone}</td>
                                    <td>
                                        <a href="${pageContext.request.contextPath}/return/returnGoods?id=${product.id}">通过</a>
                                        &nbsp; | &nbsp;
                                        <a href="${pageContext.request.contextPath}/return/deletereturn02?id=${product.id}">删除</a>
                                          |

                                    </td>
                                </tr>
                            </c:forEach>


                            </tbody>
                            <tfoot>
                            <tr>
                                <td>当前页:${returnPageInfo.pageNum}</td>
                                <td></td>
                                <td><a href="${pageContext.request.contextPath}/return/getReturn02?pageNum=${returnPageInfo.prePage}& pageSize=${returnPageInfo.pageSize}">前一页：${returnPageInfo.prePage}</a></td>
                                <td></td>
                                <td><a href="${pageContext.request.contextPath}/return/getReturn02?pageNum=${returnPageInfo.nextPage}& pageSize=${returnPageInfo.pageSize}">下一页：${returnPageInfo.nextPage}</a></td>
                                <td></td>
                                <td><a href="${pageContext.request.contextPath}/return/getReturn02?pageNum=${returnPageInfo.pages}& pageSize=${returnPageInfo.pageSize}">尾页：${returnPageInfo.nextPage}</a></td>
                                <td></td>
                                <td>一共：${returnPageInfo.pages}</td>

                            </tr>
                            </tfoot>
                        </table>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->

<script>window.jQuery || document.write('<script src="/assets/js/vendor/jquery.min.js"><\/script>')</script>
<script src="../../../assets/dist/js/bootstrap.min.js"></script>
<!-- Just to make our placeholder images work. Don't actually copy the next line! -->
<script src="../../../assets/js/vendor/holder.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="../../../assets/js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>
